package wenjie.chen.receiver.command.fixture;

import wenjie.chen.receiver.command.IncreaseAmountCommand;

class IncreaseAmountCommandFixture {
    IncreaseAmountCommand target = new IncreaseAmountCommand()

    def accountId(String accountId) {
        target.accountId = accountId
        this
    }

    def amount(double amount) {
        target.amount = amount
        this
    }

    def build() {
        target
    }

    static def aIncreaseAmountCommand() {
        new IncreaseAmountCommandFixture().accountId("2").amount(100)
    }
}
